home *** CD-ROM | disk | FTP | other *** search
- if (vlHardware != VLHDW_SIRIUS) { // can't set any of this for Sirius
- for (int i = 2; i > 0; --i) {
- t = 0;
- if (0 > vlSetControl(vlServer, vlPath, memNode, VL_OFFSET, &offset)) {
- if (vlGetErrno() != VLValueOutOfRange) {
- VLERROR(("inpview: vlSetControl(VL_OFFSET)"));
- return FALSE;
- }
- t++;
- }
-
- if (0 > vlSetControl(vlServer, vlPath, memNode, VL_SIZE, &clip)) {
- if (vlGetErrno() != VLValueOutOfRange) {
- VLERROR(("inpview: vlSetControl(VL_SIZE)"));
- return FALSE;
- }
- t++;
- }
- if (!t) // no errors
- break;
- }
- }
-
-